import Vue from "vue";
import App from "./App.vue";
import router from "./router";
// import store from "./vuex/store";

// import vConsole from "vconsole";
// const vconsole = new vConsole();
// import ajax from "./utils/axios";
// import fun from "./utils/fun";
import $http from "./utils/http";
import larFree from "./utils/larFree";
// import api from "./utils/api";
// import VueDraggableResizable from 'vue-draggable-resizable'
// Vue.component('vue-draggable-resizable', VueDraggableResizable)
import VueScroller from 'vue-scroller';
import '@/assets/css/iconfont.css'
import * as fundebug from "fundebug-javascript";
import fundebugVue from "fundebug-vue";
// Vue.use(vConsole)
Vue.config.productionTip = false;
Vue.directive("title", {
  inserted: function (el, binding) {
    if(binding.value != undefined){
      document.title = binding.value
    }
  }
});
fundebug.apikey = "138b26aa702379892b44fff2992cbc6960a4fcdf669c2ca5beca2b56e807e96a";
fundebugVue(fundebug, Vue);
// import VueAMap from "vue-amap";
// Vue.use(VueAMap);
// VueAMap.initAMapApiLoader({
//   key: "77015ad31c76237ddc7de735afa2a230",
//   plugin: [
//     "AMap.Autocomplete",
//     "AMap.PlaceSearch",
//     "AMap.Scale",
//     "AMap.OverView",
//     "AMap.ToolBar",
//     "AMap.MapType",
//     "AMap.PolyEditor",
//     "AMap.CircleEditor",
//     "AMap.Geolocation",
//     "AMap.Geocoder"
//   ]
// });
// Vue.use(fun);
// Vue.use(api);
Vue.use($http);
Vue.use(larFree);
Vue.use(VueScroller);
import "./reset.css";
new Vue({
  router,
  // store,
  // fun,
  VueScroller,
    // vconsole,
  render: h => h(App)
}).$mount("#app");
